package com.wxservice.domain.request;


import com.alibaba.fastjson.annotation.JSONField;


import java.util.List;



//通过标签群发时需要")
public class MessageREQ {
    @JSONField(serialize = false)
    //access_token：接口调用凭证access_token
    private String access_token;
    //filter：用于设定图文消息的接收者
    private FilterREQ filter;
    //msgtype：群发的消息类型，图文消息为mpnews，文本消息为text，语音为voice，音乐为music，图片为image，视频为video，卡券为wxcard
    private String msgtype;
    //text：msgtype为text传入
    private TextREQ text;
    //touser：使用OpenID进行群发
    private List<String> touser;
    //send_ignore_reprint：图文消息被判定为转载时，是否继续群发。 1为继续群发（转载），0为停止群发。 该参数默认为0
    private int send_ignore_reprint;
    //mpnews：图文消息
    private AllMediaREQ mpnews;
    //voice：语音
    private AllMediaREQ voice;
    //image：图片
    private AllMediaREQ image;
    //wxcard：卡券
    private WXcardREQ wxcard;

    @Override
    public String toString() {
        return "MessageREQ{" +
                "access_token='" + access_token + '\'' +
                ", filter=" + filter +
                ", msgtype='" + msgtype + '\'' +
                ", text=" + text +
                ", touser=" + touser +
                ", send_ignore_reprint=" + send_ignore_reprint +
                ", mpnews=" + mpnews +
                ", voice=" + voice +
                ", image=" + image +
                ", wxcard=" + wxcard +
                '}';
    }

    public String getAccess_token() {
        return access_token;
    }

    public void setAccess_token(String access_token) {
        this.access_token = access_token;
    }

    public FilterREQ getFilter() {
        return filter;
    }

    public void setFilter(FilterREQ filter) {
        this.filter = filter;
    }

    public String getMsgtype() {
        return msgtype;
    }

    public void setMsgtype(String msgtype) {
        this.msgtype = msgtype;
    }

    public TextREQ getText() {
        return text;
    }

    public void setText(TextREQ text) {
        this.text = text;
    }

    public List<String> getTouser() {
        return touser;
    }

    public void setTouser(List<String> touser) {
        this.touser = touser;
    }

    public int getSend_ignore_reprint() {
        return send_ignore_reprint;
    }

    public void setSend_ignore_reprint(int send_ignore_reprint) {
        this.send_ignore_reprint = send_ignore_reprint;
    }

    public AllMediaREQ getMpnews() {
        return mpnews;
    }

    public void setMpnews(AllMediaREQ mpnews) {
        this.mpnews = mpnews;
    }

    public AllMediaREQ getVoice() {
        return voice;
    }

    public void setVoice(AllMediaREQ voice) {
        this.voice = voice;
    }

    public AllMediaREQ getImage() {
        return image;
    }

    public void setImage(AllMediaREQ image) {
        this.image = image;
    }

    public WXcardREQ getWxcard() {
        return wxcard;
    }

    public void setWxcard(WXcardREQ wxcard) {
        this.wxcard = wxcard;
    }

    public MessageREQ() {

    }

    public MessageREQ(String access_token, FilterREQ filter, String msgtype, TextREQ text, List<String> touser, int send_ignore_reprint, AllMediaREQ mpnews, AllMediaREQ voice, AllMediaREQ image, WXcardREQ wxcard) {

        this.access_token = access_token;
        this.filter = filter;
        this.msgtype = msgtype;
        this.text = text;
        this.touser = touser;
        this.send_ignore_reprint = send_ignore_reprint;
        this.mpnews = mpnews;
        this.voice = voice;
        this.image = image;
        this.wxcard = wxcard;
    }
}
